package com.ucode.hrm.typehandler;

import com.ucode.model.hrm.HrmStudyExperience;
import com.ucode.springboot.starter.mybatis.core.typehandler.AbstractJsonTypeHandler;
import com.ucode.tool.util.JsonUtils;

import java.util.List;

public class HrmStudyExperienceListTypeHandler extends AbstractJsonTypeHandler<List<HrmStudyExperience>> {

    @Override
    protected List<HrmStudyExperience> parse(String json) {
        return JsonUtils.parseArray(json, HrmStudyExperience.class);
    }

    @Override
    protected String toJson(List<HrmStudyExperience> obj) {
        return JsonUtils.toJsonString(obj);
    }
}

    